﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.Linq;
using System.Text;

namespace Qero.ChartPoint
{
    [System.ComponentModel.RunInstaller(true)]
    public partial class Installer : System.Configuration.Install.Installer
    {
        public Installer() { }

        [System.Security.Permissions.SecurityPermission(System.Security.Permissions.SecurityAction.Demand)]
        public override void Install(System.Collections.IDictionary stateSaver)
        {
            base.Install(stateSaver);

            try { RegisterHomepages(); }
            catch (Exception ex)
            {
                throw new System.Configuration.Install.InstallException("Custom Installer Failed", ex);
            }
        }

        private void RegisterHomepages()
        {
            RegisterHomepage.RegisterSafeForScripting(typeof(AppRootControl));
            RegisterHomepage.RegisterSafeForScripting(typeof(AppSetControl));
        }
    }
}
